<!doctype html>
<html class="default no-js">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>express | lcc-framework(Server)</title>
	<meta name="description" content="Documentation for lcc-framework(Server)">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="../assets/css/main.css">
	<script async src="../assets/js/search.js" id="search-script"></script>
</head>
<body>
<header>
	<div class="tsd-page-toolbar">
		<div class="container">
			<div class="table-wrap">
				<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
					<div class="field">
						<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
						<input id="tsd-search-field" type="text" />
					</div>
					<ul class="results">
						<li class="state loading">Preparing search index...</li>
						<li class="state failure">The search index is not available</li>
					</ul>
					<a href="../index.html" class="title">lcc-framework(Server)</a>
				</div>
				<div class="table-cell" id="tsd-widgets">
					<div id="tsd-filter">
						<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
						<div class="tsd-filter-group">
							<div class="tsd-select" id="tsd-filter-visibility">
								<span class="tsd-select-label">All</span>
								<ul class="tsd-select-list">
									<li data-value="public">Public</li>
									<li data-value="protected">Public/Protected</li>
									<li data-value="private" class="selected">All</li>
								</ul>
							</div>
							<input type="checkbox" id="tsd-filter-inherited" checked />
							<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
							<input type="checkbox" id="tsd-filter-externals" checked />
							<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
						</div>
					</div>
					<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
				</div>
			</div>
		</div>
	</div>
	<div class="tsd-page-title">
		<div class="container">
			<ul class="tsd-breadcrumb">
				<li>
					<a href="../modules.html">lcc-framework(Server)</a>
				</li>
				<li>
					<a href="utils_array.html">utils/array</a>
				</li>
				<li>
					<a href="utils_array.lcc.html">lcc</a>
				</li>
				<li>
					<a href="utils_array.lcc.express.html">express</a>
				</li>
			</ul>
			<h1>Namespace express</h1>
		</div>
	</div>
</header>
<div class="container container-main">
	<div class="row">
		<div class="col-8 col-content">
			<section class="tsd-panel-group tsd-index-group">
				<h2>Index</h2>
				<section class="tsd-panel tsd-index-panel">
					<div class="tsd-index-content">
						<section class="tsd-index-section ">
							<h3>Interfaces</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-interface tsd-parent-kind-namespace"><a href="../interfaces/utils_array.lcc.express.filedownload.html" class="tsd-kind-icon">File<wbr>Download</a></li>
							</ul>
						</section>
						<section class="tsd-index-section ">
							<h3>Variables</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-variable tsd-parent-kind-namespace"><a href="utils_array.lcc.express.html#filedownload_maxage" class="tsd-kind-icon">FILEDOWNLOAD_<wbr>MAXAGE</a></li>
								<li class="tsd-kind-variable tsd-parent-kind-namespace"><a href="utils_array.lcc.express.html#http_protocol_path" class="tsd-kind-icon">HTTP_<wbr>PROTOCOL_<wbr>PATH</a></li>
								<li class="tsd-kind-variable tsd-parent-kind-namespace"><a href="utils_array.lcc.express.html#protorouter" class="tsd-kind-icon">proto<wbr>Router</a></li>
							</ul>
						</section>
						<section class="tsd-index-section ">
							<h3>Functions</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-function tsd-parent-kind-namespace"><a href="utils_array.lcc.express.html#createemptyexpress" class="tsd-kind-icon">create<wbr>Empty<wbr>Express</a></li>
								<li class="tsd-kind-function tsd-parent-kind-namespace"><a href="utils_array.lcc.express.html#createfilesexpress" class="tsd-kind-icon">create<wbr>Files<wbr>Express</a></li>
								<li class="tsd-kind-function tsd-parent-kind-namespace"><a href="utils_array.lcc.express.html#createprotocolexpress" class="tsd-kind-icon">create<wbr>Protocol<wbr>Express</a></li>
								<li class="tsd-kind-function tsd-parent-kind-namespace"><a href="utils_array.lcc.express.html#createrouter" class="tsd-kind-icon">create<wbr>Router</a></li>
							</ul>
						</section>
					</div>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Variables</h2>
				<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-namespace">
					<a name="filedownload_maxage" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagLet">Let</span> FILEDOWNLOAD_<wbr>MAXAGE</h3>
					<div class="tsd-signature tsd-kind-icon">FILEDOWNLOAD_<wbr>MAXAGE<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 2592000000</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in network/http/express-preset.ts:51</li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<dl class="tsd-comment-tags">
							<dt>zh</dt>
							<dd><p>文件下载默认最大过期时间</p>
							</dd>
						</dl>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-namespace">
					<a name="http_protocol_path" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagLet">Let</span> HTTP_<wbr>PROTOCOL_<wbr>PATH</h3>
					<div class="tsd-signature tsd-kind-icon">HTTP_<wbr>PROTOCOL_<wbr>PATH<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &#x27;/protocol&#x27;</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in network/http/express-protocol.ts:35</li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<dl class="tsd-comment-tags">
							<dt>zh</dt>
							<dd><p>HTTP协议路径</p>
							</dd>
						</dl>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-namespace">
					<a name="protorouter" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagLet">Let</span> proto<wbr>Router</h3>
					<div class="tsd-signature tsd-kind-icon">proto<wbr>Router<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> = ...</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in network/http/express-protocol.ts:37</li>
						</ul>
					</aside>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Functions</h2>
				<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-namespace">
					<a name="createemptyexpress" class="tsd-anchor"></a>
					<h3>create<wbr>Empty<wbr>Express</h3>
					<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-namespace">
						<li class="tsd-signature tsd-kind-icon">create<wbr>Empty<wbr>Express<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in network/http/express-preset.ts:35</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<dl class="tsd-comment-tags">
									<dt>zh</dt>
									<dd><p>创建空Express</p>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-namespace">
					<a name="createfilesexpress" class="tsd-anchor"></a>
					<h3>create<wbr>Files<wbr>Express</h3>
					<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-namespace">
						<li class="tsd-signature tsd-kind-icon">create<wbr>Files<wbr>Express<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">...</span>paths<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/base_lcc.lcc.express.filedownload.html" class="tsd-signature-type" data-tsd-kind="Interface">FileDownload</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in network/http/express-preset.ts:83</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<dl class="tsd-comment-tags">
									<dt>zh</dt>
									<dd><p>创建文件Express</p>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5><span class="tsd-flag ts-flagRest">Rest</span> <span class="tsd-signature-symbol">...</span>paths: <span class="tsd-signature-symbol">(</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/base_lcc.lcc.express.filedownload.html" class="tsd-signature-type" data-tsd-kind="Interface">FileDownload</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">[]</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>路径或配置数组</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-namespace">
					<a name="createprotocolexpress" class="tsd-anchor"></a>
					<h3>create<wbr>Protocol<wbr>Express</h3>
					<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-namespace">
						<li class="tsd-signature tsd-kind-icon">create<wbr>Protocol<wbr>Express<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in network/http/express-protocol.ts:49</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<dl class="tsd-comment-tags">
									<dt>zh</dt>
									<dd><p>创建协议Express</p>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-namespace">
					<a name="createrouter" class="tsd-anchor"></a>
					<h3>create<wbr>Router</h3>
					<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-namespace">
						<li class="tsd-signature tsd-kind-icon">create<wbr>Router<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in network/http/express-preset.ts:43</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<dl class="tsd-comment-tags">
									<dt>zh</dt>
									<dd><p>创建路由</p>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4>
						</li>
					</ul>
				</section>
			</section>
		</div>
		<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
			<nav class="tsd-navigation primary">
				<ul>
					<li class=" ">
						<a href="../modules.html">Exports</a>
					</li>
					<li class="current tsd-kind-module">
						<a href="utils_array.html">utils/array</a>
						<ul>
							<li class="current tsd-kind-namespace tsd-parent-kind-module">
								<a href="utils_array.lcc.html">lcc</a>
								<ul>
									<li class=" tsd-kind-namespace tsd-parent-kind-namespace">
										<a href="utils_array.lcc.debug.html">DEBUG</a>
									</li>
									<li class=" tsd-kind-namespace tsd-parent-kind-namespace">
										<a href="utils_array.lcc.events.html">Events</a>
									</li>
									<li class=" tsd-kind-namespace tsd-parent-kind-namespace">
										<a href="utils_array.lcc.cocos.html">cocos</a>
									</li>
									<li class="current tsd-kind-namespace tsd-parent-kind-namespace">
										<a href="utils_array.lcc.express.html">express</a>
									</li>
									<li class=" tsd-kind-namespace tsd-parent-kind-namespace">
										<a href="utils_array.lcc.fs.html">fs</a>
									</li>
									<li class=" tsd-kind-namespace tsd-parent-kind-namespace">
										<a href="utils_array.lcc.http.html">http</a>
									</li>
									<li class=" tsd-kind-namespace tsd-parent-kind-namespace">
										<a href="utils_array.lcc.js.html">js</a>
									</li>
									<li class=" tsd-kind-namespace tsd-parent-kind-namespace">
										<a href="utils_array.lcc.math.html">math</a>
									</li>
									<li class=" tsd-kind-namespace tsd-parent-kind-namespace">
										<a href="utils_array.lcc.netdata.html">netdata</a>
									</li>
									<li class=" tsd-kind-namespace tsd-parent-kind-namespace">
										<a href="utils_array.lcc.os.html">os</a>
									</li>
								</ul>
							</li>
						</ul>
					</li>
				</ul>
			</nav>
			<nav class="tsd-navigation secondary menu-sticky">
				<ul class="before-current">
					<li class=" tsd-kind-interface tsd-parent-kind-namespace">
						<a href="../interfaces/utils_array.lcc.express.filedownload.html" class="tsd-kind-icon">File<wbr>Download</a>
					</li>
					<li class=" tsd-kind-variable tsd-parent-kind-namespace">
						<a href="utils_array.lcc.express.html#filedownload_maxage" class="tsd-kind-icon">FILEDOWNLOAD_<wbr>MAXAGE</a>
					</li>
					<li class=" tsd-kind-variable tsd-parent-kind-namespace">
						<a href="utils_array.lcc.express.html#http_protocol_path" class="tsd-kind-icon">HTTP_<wbr>PROTOCOL_<wbr>PATH</a>
					</li>
					<li class=" tsd-kind-variable tsd-parent-kind-namespace">
						<a href="utils_array.lcc.express.html#protorouter" class="tsd-kind-icon">proto<wbr>Router</a>
					</li>
					<li class=" tsd-kind-function tsd-parent-kind-namespace">
						<a href="utils_array.lcc.express.html#createemptyexpress" class="tsd-kind-icon">create<wbr>Empty<wbr>Express</a>
					</li>
					<li class=" tsd-kind-function tsd-parent-kind-namespace">
						<a href="utils_array.lcc.express.html#createfilesexpress" class="tsd-kind-icon">create<wbr>Files<wbr>Express</a>
					</li>
					<li class=" tsd-kind-function tsd-parent-kind-namespace">
						<a href="utils_array.lcc.express.html#createprotocolexpress" class="tsd-kind-icon">create<wbr>Protocol<wbr>Express</a>
					</li>
					<li class=" tsd-kind-function tsd-parent-kind-namespace">
						<a href="utils_array.lcc.express.html#createrouter" class="tsd-kind-icon">create<wbr>Router</a>
					</li>
				</ul>
			</nav>
		</div>
	</div>
</div>
<footer class="with-border-bottom">
	<div class="container">
		<h2>Legend</h2>
		<div class="tsd-legend-group">
			<ul class="tsd-legend">
				<li class="tsd-kind-namespace"><span class="tsd-kind-icon">Namespace</span></li>
				<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
			</ul>
		</div>
	</div>
</footer>
<div class="container tsd-generator">
	<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
</div>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
</body>
</html>